/**
 * @description: 登录函数
 * @param {*} data { mobile,password }
 * @return {*} promise
 */
import type { LoginParams } from "@/types/user"
import { request } from "@/utils/reuqest"

// 登录接口封装
export const loginAPI = (data: LoginParams) => {
  // 返回 Promise
  return request<{token: string}>('/park/login', 'POST', data)
}